package 刷题10月.leecodehot100;

import java.util.Scanner;
// https://blog.csdn.net/weixin_42370303/article/details/80562611
public class 实现十进制数转换为二进制1017 {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        int n=scanner.nextInt();
        String str = "";
        while(n!=0){
              str = str+n%2;
              n = n/2;
        }
        System.out.println(Integer.parseInt(str));
        scanner.close();
        int a=1;
        a=~a;
    }
}
